package com.sqx.modules.app.controller.app;

import com.alibaba.fastjson.JSONObject;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.entity.vo.CustomerApiCallbackVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.sqx.modules.app.utils.CustomerSmsUtils.send;

@Slf4j
@RestController
public class TestController {

    @PostMapping("/sendCallback")
    public Result sendCallback(String msgCallbackStr){
//        send();
        return Result.success();
    }

    @PostMapping("/callbackTest")
    public String callbackTest(@RequestBody CustomerApiCallbackVo callbackVo)
    {
        String msgCallbackStr = JSONObject.toJSONString(callbackVo);
        log.info("callbackTest data:{}", msgCallbackStr);
        return "success";
    }


}
